{% extends 'base/base.html' %}

{% block header %}
    {% include 'base/_nav_main.html' %}
    {% include 'base/_nav_breadcrumbs.html' %}
    {% include 'base/_nav_user_status.html' %}
{% endblock %}

{% block footer %}
    <p>
        Powered by <a href="http://www.tipfy.org/wiki/moe/">Moe</a>.
        Yeah, the name is Moe.
        <a href="http://code.google.com/appengine/">
            <img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" alt="Powered by Google App Engine" />
        </a>
    </p>
{% endblock %}

{% block extrahead -%}
        <meta http-equiv="X-UA-Compatible" content="chrome=1">
        <link rel="stylesheet" type="text/css" href="/static/styles/screen.css">
{%- endblock %}

{%- block extrabody %}
    {% include 'base/_analytics.html' %}
    {% if debug %}
        <script src="/static/scripts/closure-library/closure/goog/base.js"></script>
        <script src="/static/scripts/closure-library/third_party/closure/goog/deps.js"></script>
        <script src="/static/scripts/tipfy/deps.js"></script>
        <script src="/static/scripts/moe/deps.js"></script>
        <!--<script src="/static/scripts/tipfy/base.js"></script>
        <script src="/static/scripts/tipfy/ui/dialogs.js"></script>
        <script src="/static/scripts/tipfy/ui/messages.js"></script>
        <script src="/static/scripts/tipfy/ui/bookmark.js"></script>
        <script src="/static/scripts/tipfy/ui/karmavote.js"></script>
        <script src="/static/scripts/moe/base.js"></script>
        <script src="/static/scripts/tipfy/ui/columns.js"></script>-->
        <script>
            goog.require('tipfy');
            goog.require('tipfy.ui.Messages');
            goog.require('moe');
        </script>
    {% else %}
        <script src="/static/scripts/scripts.js"></script>
    {% endif %}

    {%- block messages -%}
        <script>
        tipfy.registry.messages = new tipfy.ui.Messages('tipfy-messages');
        {% if messages %}
        tipfy.registry.messages.addMessages({{ messages|safe }});
        {% endif %}
        </script>
    {%- endblock -%}

    <!--[if IE]>
    <script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
    <script>
        window.attachEvent('onload', function() {
            CFInstall.check({
                mode: 'overlay',
                destination: ''
            });
        });
    </script>
    <script src="/static/scripts/tipfy/ie.js"></script>
    <script src="/static/scripts/ie.js"></script>
    <![endif]-->

    {% if current_app == 'home' %}
        <script src="/static/scripts/snowstorm.js"></script>
        <script>
        snowStorm.snowColor = '#CCCCCC';
        snowStorm.followMouse = false;
    </script>{% endif %}
{% endblock %}
